
// import Index from '@/page/fill/index'
// const recommend = r => require.ensure([], () => r(require('@/page/fill/recommend.vue')), 'recommend')
// const basic = r => require.ensure([], () => r(require('@/page/fill/basic')), 'basic')
// const bank = r => require.ensure([], () => r(require('@/page/fill/bank')))
// const authorization = r => require.ensure([], () => r(require('@/page/fill/authorization')), 'authorization')
// const verify = r => require.ensure([], () => r(require('@/page/fill/verify')), 'verify')
// const detail = r => require.ensure([], () => r(require('@/page/detail/index')), 'detail')
// const addition = r => require.ensure([], () => r(require('@/page/detail/addition')), 'addition')
// const identity = r => require.ensure([], () => r(require('@/page/fill/identity')), 'identity')
// const society = r => require.ensure([], () => r(require('@/page/fill/society')), 'society')
// const job = r => require.ensure([], () => r(require('@/page/fill/job')), 'job')
// const school = r => require.ensure([], () => r(require('@/page/fill/school')), 'school')
// const student = r => require.ensure([], () => r(require('@/page/fill/student')), 'student')
// const test = r => require.ensure([], () => r(require('@/page/test')), 'test')
// const signfail = r => require.ensure([], () => r(require('@/page/fill/signfail')), 'signfail')

// const signfail = r =require.ensure([], () => r(require('@/page/fill/signfail')), 'signfail')

function load (component) {
  return () => import(`@/page/${component}.vue`)
}

export default[
  // 表单
  {
    path: '/',
    component: load('fill/index'),
    meta: {title: '白条申请', keepAlive: true, requireAuth: false}
  },
  {
    path: '/fill/recommend/',
    component: load('fill/recommend'),
    meta: {title: '店员推荐', keepAlive: true, requireAuth: true}
  },
  {
    path: '/fill/basic/',
    component: load('fill/basic'),
    meta: {title: '身份信息验证', keepAlive: true, requireAuth: true}
  },
  {
    path: '/fill/bank/',
    component: load('fill/bank'),
    meta: {title: '银行卡信息', keepAlive: true, requireAuth: true}
  },
  {
    path: '/fill/authorization/',
    component: load('fill/authorization'),
    meta: {title: '芝麻信用授权', keepAlive: true, requireAuth: true}
  },
  {
    path: '/fill/verify/',
    component: load('fill/verify'),
    meta: {title: '身份验证', keepAlive: true, requireAuth: true}
  },
  {
    path: '/fill/identity/',
    component: load('fill/identity'),
    meta: {title: '拍摄身份证', keepAlive: true, requireAuth: true}
  },
  {
    path: '/fill/society/',
    component: load('fill/society'),
    meta: {title: '社交信息', keepAlive: true, requireAuth: true}
  },
  {
    path: '/fill/job/',
    component: load('fill/job'),
    meta: {title: '工作信息', keepAlive: true, requireAuth: true}
  },
  {
    path: '/fill/school/',
    component: load('fill/school'),
    meta: {title: '学校信息', keepAlive: true, requireAuth: true}
  },
  {
    path: '/fill/student/',
    component: load('fill/student'),
    meta: {title: '拍摄学生证明', keepAlive: true, requireAuth: true}
  },
  {
    path: '/fill/signfail',
    component: load('fill/signfail'),
    meta: {title: '电子签章', keepAlive: true, requireAuth: true}
  },
  {
    path: '/auth/protocol',
    component: load('fill/protocol'),
    meta: {title: '九机白条授权协议'}
  },
  // 审核详情
  {
    path: '/detail/',
    component: load('detail/index'),
    meta: {title: '审核详情', keepAlive: true, requireAuth: true}
  },
  {
    path: '/detail/addition/',
    component: load('detail/addition'),
    meta: {title: '审核详情', keepAlive: true, requireAuth: true}
  },
  // 账单
  {
    path: '/account/',
    component: load('test'),
    meta: {title: '账单', keepAlive: true, requireAuth: true}
  },
  // test
  {
    path: '/picker/',
    component: load('test/picker'),
    meta: {title: 'picker', keepAlive: true, requireAuth: true}
  },
  // 预授权
  {
    path: '/auth/',
    component: load('auth/index'),
    meta: {title: '资金授权', keepAlive: true, requireAuth: true}
  },
  {
    path: '/auth/detail/:authorizeId',
    component: load('auth/detail'),
    meta: {title: '授权结果', keepAlive: true, requireAuth: true}
  }
]
